package com.axjy.mapper;

import com.axjy.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by asus on 2018/1/25.
 */
public interface UserMapper {

    User find(@Param("userCode") String userCode, @Param("userPassword") String userPassword);

    List<User> findRows(Integer offset);

    Integer findTotal();

    Integer add(User user);

    Integer update(User user);

    User get(Integer id);

    Integer del(Integer id);

    Integer exists(String userCode);

}
